<template>
  <div>
    <mt-swipe class="mtSwipe" :auto="4000">
      <mt-swipe-item>
        <img src="../../public//Img/banner1.jpg" alt="" />
      </mt-swipe-item>
      <mt-swipe-item>
        <img src="../../public//Img/banner2.jpg" alt="" />
      </mt-swipe-item>
      <mt-swipe-item>
        <img src="../../public//Img/banner3.jpg" alt="" />
      </mt-swipe-item>
      <mt-swipe-item>
        <img src="../../public//Img/banner4.jpg" alt="" />
      </mt-swipe-item>
    </mt-swipe>
    <div class="container">
      <div class="menu" @click="goToAL()">
        <img src="../assets/icons/anli.svg" alt="" />
        <span>精品案列</span>
      </div>
      <div class="menu" @click="goToTeam">
        <img src="../assets/icons/team.svg" alt="" />
        <span>服务团队</span>
      </div>
      <div class="menu">
        <img src="../assets/icons/jiandu.svg" alt="" />
        <span>品质监督</span>
      </div>
      <div class="menu">
        <img src="../assets/icons/gushi.svg" alt="" />
        <span>客户故事</span>
      </div>
    </div>
    <div class="boder"></div>
    <div class="middleTitle">选择翰洁的优势</div>
    <div>
      <mt-swipe class="mtSwipe2" :show-indicators="false">
        <mt-swipe-item>
          <img src="../../public/Img/youshi1.png" alt="" />
        </mt-swipe-item>
        <mt-swipe-item>
          <img src="../../public/Img/advantage_02.png" alt="" />
        </mt-swipe-item>
        <mt-swipe-item>
          <img src="../../public/Img/advantage_03.png" alt="" />
        </mt-swipe-item>
        <mt-swipe-item>
          <img src="../../public/Img/advantage_04.png" alt="" />
        </mt-swipe-item>
        <mt-swipe-item>
          <img
            src="https://xystcdn.xydec.com.cn/static/mxy/images/process_01.jpg"
            alt=""
          />
        </mt-swipe-item>
      </mt-swipe>
    </div>
    <div class="middleTitle">我们的施工流程</div>
    <div>
      <mt-swipe class="mtSwipe2" :show-indicators="false">
        <mt-swipe-item>
          <img
            src="https://xystcdn.xydec.com.cn/static/mxy/images/process_01.jpg"
          />
        </mt-swipe-item>
        <mt-swipe-item>
          <img
            src="https://xystcdn.xydec.com.cn/static/mxy/images/process_02.jpg"
          />
        </mt-swipe-item>
        <mt-swipe-item>
          <img
            src="https://xystcdn.xydec.com.cn/static/mxy/images/process_03.jpg"
          />
        </mt-swipe-item>
        <mt-swipe-item>
          <img
            src="https://xystcdn.xydec.com.cn/static/mxy/images/process_04.jpg"
          />
        </mt-swipe-item>
        <mt-swipe-item>
          <img
            src="https://xystcdn.xydec.com.cn/static/mxy/images/process_05.jpg"
          />
        </mt-swipe-item>
      </mt-swipe>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    goToAL() {
      this.$router.push('/index/about')
    },
    goToTeam() {
      this.$router.push('/index/team')
    },
  },
}
</script>

<style lang="scss" scoped>
div {
  .mtSwipe {
    width: 100%;
    height: 200px;
    img {
      width: 100%;
      height: 100%;
    }
  }
  .container {
    padding: 20px 0 20px 0;
    display: flex;
    justify-content: space-around;
    .menu {
      display: flex;
      flex-direction: column;
      align-items: center;
      img {
        width: 30px;
        height: 30px;
      }
      span {
        font-size: 14px;
        font-family: 楷体;
      }
    }
  }
  .boder {
    height: 10px;
    background-color: #ececec;
  }
  .middleTitle {
    padding: 10px;
    letter-spacing: 15px;
    font-size: 24px;
    font-family: '楷体';
    font-weight: bold;
    color: #e10602;
  }
  .mtSwipe2 {
    width: 100%;
    height: 300px;
    img {
      width: 100%;
      height: 100%;
    }
  }
}
</style>
